#include <stdio.h>
#include <stdlib.h>

int main()
{
   struct student{
	   char name[10];
	   float score;
	   struct student *next;
   }*head,*pnew,*ptail,*p;
	pnew=(struct student*)malloc(sizeof(struct student));
	scanf("%s%f",pnew->name,&pnew->score);
	head=ptail=pnew;
	for(int i=1;i<9;i++){
		pnew=(struct student*)malloc(sizeof(struct student));
		scanf("%s%f",pnew->name,&pnew->score);
		ptail->next=pnew;
		ptail=pnew;
	}
	ptail->next=NULL;
	p=head;
	while(p->next!=NULL){
	printf("%s %f\n",p->name,p->score);p=p->next;}
	
	
	
}